package com.shop.cereshop.app.param.product;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @description: TODO 
 * @author lx
 * @date 2025/8/1 13:01
 * @version 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProductDTO", description = "商品请求DTO")
public class ProductDTO {

    @ApiModelProperty(value = "商品id", required = true)
    @NotNull(message = "productId不能为空")
    private Long productId;

    @ApiModelProperty(value = "店铺id")
    @JsonIgnore
    private Long shopId;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "规格id")
    private Long skuId;

    @ApiModelProperty(value = "访问终端 1-APP 2-微信小程序 3-H5 4-支付宝小程序")
    private Integer terminal;

    @ApiModelProperty(value = "操作系统 1-Android 2-IOS")
    private Integer system;

//    @ApiModelProperty(value = "所在地区")
//    private String city;
}
